from rest_framework import serializers

from home import models


class HomeSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Nav
        fields = '__all__'


class BannerSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Banner
        fields = '__all__'


class NavSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Nav
        fields = '__all__'